/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.hochschild.sgv.domain;

import java.util.ResourceBundle;

public class Conexion {

    private String strMandanteSAP;
    private String strUsuarioSAP;
    private String strPasswordSAP;
    private String strIdiomaSAP;
    private String strHostSAP;
    private String strSistemaSAP;
    private String strUrl;
    private String strDriver;
    private String strUsuario;
    private String strPassword;
    private String strUrlSeg;
    private String strDriverSeg;
    private String strUsuarioSeg;
    private String strPasswordSeg;

    public String getStrDriverSeg() {
        return strDriverSeg;
    }

    public void setStrDriverSeg(String strDriverSeg) {
        this.strDriverSeg = strDriverSeg;
    }

    public String getStrPasswordSeg() {
        return strPasswordSeg;
    }

    public void setStrPasswordSeg(String strPasswordSeg) {
        this.strPasswordSeg = strPasswordSeg;
    }

    public String getStrUrlSeg() {
        return strUrlSeg;
    }

    public void setStrUrlSeg(String strUrlSeg) {
        this.strUrlSeg = strUrlSeg;
    }

    public String getStrUsuarioSeg() {
        return strUsuarioSeg;
    }

    public void setStrUsuarioSeg(String strUsuarioSeg) {
        this.strUsuarioSeg = strUsuarioSeg;
    }

    public Conexion() {

        ResourceBundle bundleSap = ResourceBundle.getBundle("sap");
        ResourceBundle bundle = ResourceBundle.getBundle("jdbc");


        strMandanteSAP = bundleSap.getString("sap.mandante").trim();
        strUsuarioSAP = bundleSap.getString("sap.usuario").trim();
        strPasswordSAP = bundleSap.getString("sap.password").trim();
        strIdiomaSAP = bundleSap.getString("sap.idioma").trim();
        strHostSAP = bundleSap.getString("sap.host").trim();
        strSistemaSAP = bundleSap.getString("sap.sistema").trim();

        strUrl = bundle.getString("jdbc.url").trim();
        strDriver = bundle.getString("jdbc.driverClassName").trim();
        strUsuario = bundle.getString("jdbc.username").trim();
        strPassword = bundle.getString("jdbc.password").trim();

      
        strUrlSeg = bundle.getString("jdbc.seguridad.url").trim();
        strDriverSeg = bundle.getString("jdbc.driverClassName").trim();
        strUsuarioSeg = bundle.getString("jdbc.seguridad.username").trim();
        strPasswordSeg = bundle.getString("jdbc.seguridad.password").trim();

    }

    public String getStrMandanteSAP() {
        return strMandanteSAP;
    }

    public void setStrMandanteSAP(String strMandanteSAP) {
        this.strMandanteSAP = strMandanteSAP;
    }

    public String getStrUsuarioSAP() {
        return strUsuarioSAP;
    }

    public void setStrUsuarioSAP(String strUsuarioSAP) {
        this.strUsuarioSAP = strUsuarioSAP;
    }

    public String getStrPasswordSAP() {
        return strPasswordSAP;
    }

    public void setStrPasswordSAP(String strPasswordSAP) {
        this.strPasswordSAP = strPasswordSAP;
    }

    public String getStrIdiomaSAP() {
        return strIdiomaSAP;
    }

    public void setStrIdiomaSAP(String strIdiomaSAP) {
        this.strIdiomaSAP = strIdiomaSAP;
    }

    public String getStrHostSAP() {
        return strHostSAP;
    }

    public void setStrHostSAP(String strHostSAP) {
        this.strHostSAP = strHostSAP;
    }

    public String getStrSistemaSAP() {
        return strSistemaSAP;
    }

    public void setStrSistemaSAP(String strSistemaSAP) {
        this.strSistemaSAP = strSistemaSAP;
    }

    public String getStrUrl() {
        return strUrl;
    }

    public void setStrUrl(String strUrl) {
        this.strUrl = strUrl;
    }

    public String getStrDriver() {
        return strDriver;
    }

    public void setStrDriver(String strDriver) {
        this.strDriver = strDriver;
    }

    public String getStrUsuario() {
        return strUsuario;
    }

    public void setStrUsuario(String strUsuario) {
        this.strUsuario = strUsuario;
    }

    public String getStrPassword() {
        return strPassword;
    }

    public void setStrPassword(String strPassword) {
        this.strPassword = strPassword;
    }
}
